cmake_minimum_required(VERSION 3.27)

GetProTargetName(ProName)
# message(STATUS "ProName : ${ProName}")

set(
    # APPEND 
    ${PROJECT_NAME}_HeaderFile
    ${CMAKE_CURRENT_SOURCE_DIR}/pugiconfig.hpp
    ${CMAKE_CURRENT_SOURCE_DIR}/pugixml.hpp
)

set(
    # APPEND
    ${PROJECT_NAME}_SourceFile
    ${CMAKE_CURRENT_SOURCE_DIR}/pugixml.cpp
)

# 这个命令直接添加到目标项目的工程里面
target_sources(${ProName} PRIVATE 
    ${${PROJECT_NAME}_SourceFile}
    ${${PROJECT_NAME}_HeaderFile}
)
